<template>
  <div>
    <div class="recommend-title">周末去哪儿</div>
    <ul>
      <li class="itme border-bottom" v-for="itme of list" :key="itme.id">
        <div class="itme-img-wrapper">
          <img class="itme-img" :src="itme.imgUrl"/>
        </div>
        <div class="itme-info">
          <p class="itme-title">{{ itme.productName }}</p>
          <p class="itme-desc">{{ itme.productDesc }}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    list: Array
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/mixins.styl'

.recommend-title{
  line-height:0.8rem;
  background:#eee;
  text-indent:0.2rem;
}
.itme-img-wrapper{
  overflow:hidden;
  height:0;
  padding-bottom:37.09%;
}
.itme-img{
  width:100%;
}
.itme-info{
  padding:0 0.2rem;
  margin-bottom:0.4rem;
}
.itme-title{
  line-height:0.54rem;
  font-size:0.32rem;
  ellipsis();
}
.itme-desc{
  line-height:0.4rem;
  color:#ccc;
  ellipsis();
}
</style>
